<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 苏州数字文旅</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#E63946',
                        secondary: '#457B9D',
                        accent: '#F1C40F',
                        dark: '#1D3557',
                        light: '#F1FAEE',
                    },
                    fontFamily: {
                        sans: ['PingFang SC', 'Helvetica Neue', 'Arial', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-shadow {
                box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            }
            .nav-item-active {
                color: #E63946;
                border-bottom: 3px solid #E63946;
            }
            .achievement-icon {
                filter: grayscale(100%);
                opacity: 0.5;
            }
            .achievement-icon.unlocked {
                filter: grayscale(0);
                opacity: 1;
            }
        }
    </style>
</head>
<body class="bg-gray-50 h-screen flex flex-col">
    <!-- 顶部导航 -->
    <header class="bg-white shadow-sm sticky top-0 z-10">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="w-8"></div> <!-- 占位元素 -->
            <h1 class="text-[clamp(1.2rem,5vw,1.5rem)] font-bold text-dark">个人中心</h1>
            <button class="text-gray-600 hover:text-primary transition-colors">
                <i class="fa fa-cog text-xl"></i>
            </button>
        </div>
    </header>

    <!-- 用户信息 -->
    <div class="bg-gradient-to-r from-primary to-secondary text-white p-6">
        <div class="flex items-center">
            <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="w-16 h-16 rounded-full border-2 border-white object-cover">
            <div class="ml-4">
                <h2 class="font-bold text-lg">苏州旅行者</h2>
                <p class="text-sm opacity-90 mt-1">探索苏州的每一个角落</p>
            </div>
            <button class="ml-auto bg-white/20 hover:bg-white/30 text-white rounded-full w-8 h-8 flex items-center justify-center transition-colors">
                <i class="fa fa-pencil"></i>
            </button>
        </div>
    </div>

    <!-- 打卡成就 -->
    <div class="bg-white -mt-4 mx-4 rounded-xl p-4 card-shadow relative z-10">
        <h3 class="font-bold text-dark mb-3">园林打卡成就</h3>
        <div class="flex justify-between items-center">
            <div class="flex -space-x-2">
                <img src="https://picsum.photos/id/1039/60/60" alt="拙政园" class="w-12 h-12 rounded-full border-2 border-white achievement-icon unlocked">
                <img src="https://picsum.photos/id/1040/60/60" alt="留园" class="w-12 h-12 rounded-full border-2 border-white achievement-icon">
                <img src="https://picsum.photos/id/1041/60/60" alt="网师园" class="w-12 h-12 rounded-full border-2 border-white achievement-icon">
                <img src="https://picsum.photos/id/1042/60/60" alt="环秀山庄" class="w-12 h-12 rounded-full border-2 border-white achievement-icon">
                <img src="https://picsum.photos/id/1043/60/60" alt="狮子林" class="w-12 h-12 rounded-full border-2 border-white achievement-icon">
            </div>
            <div class="text-right">
                <div class="text-sm text-gray-500">已打卡</div>
                <div class="text-xl font-bold text-primary">1/5</div>
            </div>
        </div>
        <div class="mt-3 w-full bg-gray-200 rounded-full h-1.5">
            <div class="bg-primary h-1.5 rounded-full" style="width: 20%"></div>
        </div>
    </div>

    <!-- 主内容区 -->
    <main class="flex-1 overflow-y-auto">
        <!-- 功能菜单 -->
        <div class="p-4 space-y-4 mt-6">
            <div class="bg-white rounded-xl p-4 card-shadow">
                <h3 class="font-bold text-dark mb-4">我的行程</h3>
                <div class="space-y-3">
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center text-primary">
                            <i class="fa fa-map-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">苏州经典3日游</h4>
                            <p class="text-xs text-gray-500">2023年10月15日 - 2023年10月17日</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
                            <i class="fa fa-calendar-plus-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">创建新行程</h4>
                            <p class="text-xs text-gray-500">定制您的专属苏州之旅</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl p-4 card-shadow">
                <h3 class="font-bold text-dark mb-4">我的收藏</h3>
                <div class="space-y-3">
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-secondary/10 rounded-lg flex items-center justify-center text-secondary">
                            <i class="fa fa-heart-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">收藏的景点</h4>
                            <p class="text-xs text-gray-500">4个景点</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-secondary/10 rounded-lg flex items-center justify-center text-secondary">
                            <i class="fa fa-bookmark-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">收藏的攻略</h4>
                            <p class="text-xs text-gray-500">2篇攻略</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-secondary/10 rounded-lg flex items-center justify-center text-secondary">
                            <i class="fa fa-bed"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">收藏的酒店</h4>
                            <p class="text-xs text-gray-500">3家酒店</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl p-4 card-shadow">
                <h3 class="font-bold text-dark mb-4">系统设置</h3>
                <div class="space-y-3">
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
                            <i class="fa fa-user-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">个人资料</h4>
                            <p class="text-xs text-gray-500">编辑个人信息</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
                            <i class="fa fa-bell-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">通知设置</h4>
                            <p class="text-xs text-gray-500">管理消息通知</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
                            <i class="fa fa-question-circle-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">帮助与反馈</h4>
                            <p class="text-xs text-gray-500">使用帮助和问题反馈</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                    <div class="flex items-center p-3 rounded-lg hover:bg-gray-50 transition-colors">
                        <div class="w-10 h-10 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
                            <i class="fa fa-info-circle-o"></i>
                        </div>
                        <div class="ml-3 flex-1">
                            <h4 class="font-medium text-dark">关于我们</h4>
                            <p class="text-xs text-gray-500">应用版本和版权信息</p>
                        </div>
                        <i class="fa fa-angle-right text-gray-400"></i>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 底部导航 -->
    <footer class="bg-white border-t border-gray-200 py-2 mt-auto">
        <div class="flex justify-around">
            <a href="home.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-home text-lg"></i>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="planner.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-map-o text-lg"></i>
                <span class="text-xs mt-1">规划</span>
            </a>
            <a href="checkin.html" class="flex flex-col items-center py-1 text-gray-500 hover:text-primary transition-colors">
                <i class="fa fa-camera text-lg"></i>
                <span class="text-xs mt-1">打卡</span>
            </a>
            <a href="profile.html" class="flex flex-col items-center py-1 nav-item-active">
                <i class="fa fa-user-o text-lg"></i>
                <span class="text-xs mt-1">我的</span>
            </a>
        </div>
    </footer>
</body>
</html>